const express = require("express");
const history = require("connect-history-api-fallback");
const {createProxyMiddleware} = require("http-proxy-middleware");
const app = express();
app.use(history());
app.use(express.static(__dirname));
app.use("/acl",createProxyMiddleware({
	target:"http://139.198.34.216:8212/admin",
	changeOrigin:true,
}))
app.use("/syt",createProxyMiddleware({
	target:"http://syt-api.atguigu.cn",
	changeOrigin:true,
	pathRewrite:{
		"^/syt":""
	}
}))
app.listen(80,()=>{
	console.log("success");
})